<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .a {
            width: 300px;
            height: 300px;
            background: blue;
        }

        .b {
            width: 200px;
            height: 200px;
            background: red;
        }

        .c {
            width: 100px;
            height: 100px;
            background: yellow;
        }
    </style>
</head>

<body>
    <div class="a">
        <div class="b">
            <div class="c"></div>
        </div>
    </div>
    <script>
        let a = document.querySelector(".a")
        let b = document.querySelector(".b")
        let c = document.querySelector(".c")
        a.addEventListener("click", () => {
            console.log(1);
        }, true)
        b.addEventListener("click", () => {
            console.log(2);
        }, true)
        c.addEventListener("click", () => {
            console.log(3);
        }, true)
        a.addEventListener("click", () => {
            console.log(4);
        })
        b.addEventListener("click", () => {
            console.log(5);
        })
        // c.addEventListener("click", () => {
        //     console.log(6);
        // })
        c.onclick = function() {
            console.log(6)
        }
    </script>
</body>

</html>